import {createRouter,createWebHistory} from 'vue-router'
// 路由列表
const routes = [
      {
        name:'home',
        path:'/',
        component:()=>import('@/views/home.vue'),
        children:[
            {
                name:'main',
                path:'/',
                component:()=>import('@/views/main.vue')

            },
            {
                name:'boxtop',
                path:'top100',
                component:()=>import('@/views/charts/BoxTop.vue')
            },
            {
                name:'calender',
                path:'calender',
                component:()=>import('@/views/charts/calendar.vue')
            }
        ]

    },
        {
        name:'login',
        path:'/login',
        component:()=>import('@/views/login.vue')
    },
    {
        name:'test',
        path:'/t',
        component:()=>import('@/views/test.vue')
    },



]
const router = createRouter({
    routes,
    history:createWebHistory()
})
export default router